/*
 * camcpp.cc
 *
 *  Created on: Jul 25, 2012
 *      Author: jsramosp
 */

#include <playerclient.h>
#include <stdlib.h>

int main(int argc, char *argv[]) 
{

	uint32_t gIndex(0);

	PlayerClient client("localhost");
	CameraProxy cp(&client, gIndex);

	for (uint32_t i=0; i<10; ++i)
	{
	  client.Read();
	  cp.SaveFrame("camera");
	  std::cout << cp << std::endl;
	}
  
  return 1;
}
